import Stepper
from machine import Pin
import time 
s1 = Stepper.create(Pin(2,Pin.OUT),Pin(4,Pin.OUT),Pin(5,Pin.OUT),Pin(15,Pin.OUT), delay=2)

# 接线
# ULN2003-树莓派Pico
# IN1-GPIO0
# IN2-GPIO1
# IN3-GPIO2
# IN4-GPIO3


s1.step(100)
time.sleep_ms(500)
s1.step(100,-1)
time.sleep_ms(500)
s1.angle(180)
time.sleep_ms(500)
s1.angle(360,-1)


# step设置509差不多angle设置360
